package com.navinfo.platform.trip.common.arithmetic.enums;

import org.apache.flink.shaded.guava18.com.google.common.collect.Range;
/**
 * 进气压力区间
 * @author machi
 */
public enum RangeIntakeAirPressureEnum {
    RANGE_50(Range.lessThan(50)),
    RANGE_60(Range.closedOpen(50,60)),
    RANGE_70(Range.closedOpen(60,70)),
    RANGE_80(Range.closedOpen(70,80)),
    RANGE_90(Range.closedOpen(80,90)),
    RANGE_100(Range.closedOpen(90,100)),
    RANGE_110(Range.closedOpen(100,110)),
    RANGE_120(Range.closedOpen(110,120)),
    RANGE_130(Range.closedOpen(120,130)),
    RANGE_140(Range.closedOpen(130,140)),
    RANGE_150(Range.closedOpen(140,150)),
    RANGE_OVER_150(Range.closedOpen(150,Integer.MAX_VALUE)),
    RANGE_VALID(Range.closed(0, 200));

    private Range<Integer> range;

    RangeIntakeAirPressureEnum(Range<Integer> range) {
        this.range = range;
    }

    public Range<Integer> getRange() {
        return range;
    }
}
